home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / ms-0_06.lha / mslaved-0.06 / Makefile < prev    next >
Makefile  |  1991-09-22  |  1KB  |  50 lines

  1. #
  2. # Makefile for mslaved, the MandelSpawn computation server
  3. #
  4. # This does not use Imake for two reasons:
  5. # - the server is completely independent of X and may be compiled and 
  6. #   used on a machine that does not have X installed
  7. # - I don't know how to install man pages in section 8 using Imake
  8. #
  9.  
  10. # Edit these as necessary
  11. BINDIR=/usr/local/bin
  12. DAEMONDIR=/usr/local/etc
  13.  
  14. # Make sure you use gcc if you have a Vax, 680x0 or i386 and
  15. # you don't have a high-performance floating point unit.  
  16. # If compiled without gcc on those machines, mslaved will use floating 
  17. # point instead of fixed point, and any old PC Mandelbrot program
  18. # is likely to run circles around your fancy workstation network.
  19. # For machines with fast floating point, such as many Sparc- or
  20. # MIPS-based workstations, gcc won't make much of a difference and
  21. # may even be slower.
  22. CC=gcc
  23. LD=$(CC)
  24.  
  25. CFLAGS= -O
  26. LDFLAGS=
  27.  
  28. BINARIES= mslaved mslavedc
  29.  
  30. # Non-BSD machines usually need something like -linet or -lsocket here
  31. LIBS=
  32.  
  33. all: $(BINARIES)
  34.  
  35. mslaved: mslaved.c ms_ipc.h ms_real.c ms_real.h ms_job.h
  36.     $(CC) $(CFLAGS) mslaved.c $(LIBS) -o mslaved
  37.  
  38. mslavedc: mslavedc.c ms_ipc.h
  39.     $(CC) $(CFLAGS) mslavedc.c $(LIBS) -o mslavedc
  40.  
  41. # Also remember to edit /etc/inetd.conf and /etc/services as described in
  42. # the INSTALL file.
  43. install:
  44.     -mkdir $(DAEMONDIR)
  45.     cp mslaved $(DAEMONDIR)/mslaved; strip $(DAEMONDIR)/mslaved
  46.     cp mslavedc $(DAEMONDIR)/mslavedc; strip $(DAEMONDIR)/mslavedc
  47.  
  48. clean:
  49.     rm -f core mslaved mslavedc *.o *~
  50.